package com.oig.auth.api;


import com.oig.auth.api.factory.ResourceDataCfgFallBackFactory;
import com.oig.sys.auth.vo.UserDataCfgVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(contextId = "resourceDataCfgService", value = "sys-auth-server", path="/resourceDataCfg", fallbackFactory = ResourceDataCfgFallBackFactory.class)
public interface ResourceDataCfgService {

    /**
     * 根据资源id获取资源权限配置
     * @param resourceId 资源id
     */
    @PostMapping(value = "/getUserDataCfg/{resourceId}")
    UserDataCfgVo getUserDataCfg(@PathVariable(value = "resourceId") Integer resourceId);

}
